package com.caiying.dota.domain;

import java.util.HashSet;
import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

@Entity
@Table(name = "tbl_narrator")
public class Narrator {
	private int id;
	private String name;
	private String avatar;
	private String poster;
	private String intro;
	private String address;
	private String birthday;
	private String likes;
	private String youku_userid;
	private String youku_username;
	private String youku_link;
	private Set<Video> videos = new HashSet<Video>();

	@OneToMany(mappedBy = "narrator")
	public Set<Video> getVideos() {
		return videos;
	}

	public void setVideos(Set<Video> videos) {
		this.videos = videos;
	}

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	public String getPoster() {
		return poster;
	}

	public void setPoster(String poster) {
		this.poster = poster;
	}

	public String getIntro() {
		return intro;
	}

	public void setIntro(String intro) {
		this.intro = intro;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getBirthday() {
		return birthday;
	}

	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}

	public String getLikes() {
		return likes;
	}

	public void setLikes(String likes) {
		this.likes = likes;
	}

	public String getYouku_userid() {
		return youku_userid;
	}

	public void setYouku_userid(String youku_userid) {
		this.youku_userid = youku_userid;
	}

	public String getYouku_username() {
		return youku_username;
	}

	public void setYouku_username(String youku_username) {
		this.youku_username = youku_username;
	}

	public String getYouku_link() {
		return youku_link;
	}

	public void setYouku_link(String youku_link) {
		this.youku_link = youku_link;
	}
}
